﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace day6._2
{
    internal class Program
    {
        static void Main(string[] args)
        {
            ArrayList al = new ArrayList();

            ConsoleKeyInfo cki = Console.ReadKey(true);

            while (cki.Key.ToString() != "Enter")

            {

                al.Add(cki);

                Console.Write("*");

                cki = Console.ReadKey(true);

            }



            Console.WriteLine();



            foreach (object o in al)

            {

                cki = ((ConsoleKeyInfo)o);

                Console.Write(cki.KeyChar);

            }

            Console.ReadLine();

        }

    }
}
